package com.blockchain.nodes.manager.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.blockchain.nodes.common.base.BaseEntity;

/**
 * 交易详情表 t_transaction_flow_detail
 * 
 * @author Gene Max
 * @date 2019-03-08
 */
public class TransactionFlowDetail extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 交易流水ID */
	private Long detailId;
	/** 转出账号地址 */
	private String turnOutWallet;
	/** 转入账号地址 */
	private String turnInWallet;
	/** 交易HASH */
	private String transHash;
	/** 交易编号 */
	private String transCode;
	/** 节点ID */
	private Integer nodeId;
	/** 交易前余额 */
	private Long beforeAmount;
	/** 交易后余额 */
	private Long afterAmount;

	public void setDetailId(Long detailId) 
	{
		this.detailId = detailId;
	}

	public Long getDetailId() 
	{
		return detailId;
	}
	public void setTurnOutWallet(String turnOutWallet) 
	{
		this.turnOutWallet = turnOutWallet;
	}

	public String getTurnOutWallet() 
	{
		return turnOutWallet;
	}
	public void setTurnInWallet(String turnInWallet) 
	{
		this.turnInWallet = turnInWallet;
	}

	public String getTurnInWallet() 
	{
		return turnInWallet;
	}
	public void setTransHash(String transHash) 
	{
		this.transHash = transHash;
	}

	public String getTransHash() 
	{
		return transHash;
	}
	public void setTransCode(String transCode) 
	{
		this.transCode = transCode;
	}

	public String getTransCode() 
	{
		return transCode;
	}
	public void setNodeId(Integer nodeId) 
	{
		this.nodeId = nodeId;
	}

	public Integer getNodeId() 
	{
		return nodeId;
	}
	public void setBeforeAmount(Long beforeAmount) 
	{
		this.beforeAmount = beforeAmount;
	}

	public Long getBeforeAmount() 
	{
		return beforeAmount;
	}
	public void setAfterAmount(Long afterAmount) 
	{
		this.afterAmount = afterAmount;
	}

	public Long getAfterAmount() 
	{
		return afterAmount;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("turnOutWallet", getTurnOutWallet())
            .append("turnInWallet", getTurnInWallet())
            .append("transHash", getTransHash())
            .append("transCode", getTransCode())
            .append("nodeId", getNodeId())
            .append("beforeAmount", getBeforeAmount())
            .append("afterAmount", getAfterAmount())
            .toString();
    }
}
